<template>
  <div class="box">
    <header>
      <span class="backIcon">
        <el-page-header @back="goBack"></el-page-header>
      </span>
      <div><strong>自主报到</strong></div>
    </header>
    <main>
      <div>
        <div class="steps" style="text-align: left">
          <el-row>
            <el-col :span="24">
              <el-steps :active="0" align-center finish-status="success">
                <el-step title="个人信息"></el-step>
                <el-step title="抵校登记"></el-step>
                <el-step title="报到单"></el-step>
              </el-steps>
            </el-col>
          </el-row>
        </div>
      </div>
      <div class="hr"></div>

      <form class="form">
        <p>
          <label for="tel">手机</label><span class="line"></span>
          <input class="name-css" type="text" id="tel" placeholder="请填写您的个人手机号码">
        </p>
        <div class="hr"></div>
        <p>
          <label for="email">邮箱</label><span class="line"></span>
          <input class="name-css" type="email" id="email" placeholder="请填写您的个人邮箱地址">
        </p>
        <div class="hr"></div>
        <p>
          <label for="nation">民族</label><span class="line"></span>
          <input class="name-css" type="text" id="nation" placeholder="请填写您的民族">
        </p>
        <div class="hr"></div>
        <p>
          <label for="outlook">政治面貌</label><span class="line"></span>
          <input class="name-css" type="text" id="outlook" placeholder="请选择您的政治面貌">
        </p>
        <div class="hr"></div>
        <p>
          <label for="homeTel">家庭电话</label><span class="line"></span>
          <input class="name-css" type="text" id="homeTel" placeholder="请填写您的家庭主机号码">
        </p>
        <div class="hr"></div>
        <p>
          <label for="homeAddress">居住住址</label><span class="line"></span>
          <input class="name-css name-css1" type="text" id="homeAddress" placeholder="家庭住址">
        </p>
        <div class="hr"></div>
        <p>
          <label for="detailed">详细地址</label><span class="line"></span>
          <input class="name-css name-css1" type="text" id="detailed" placeholder="请填写您的详细地址">
        </p>
        <div class="hr"></div>
        <p>
          <label for="emergencyContact" class="em">紧急联系人</label><span class="line"></span>
          <input class="name-css name-css1" type="text" id="emergencyContact" placeholder="请填写紧急联系人姓名">
        </p>
        <div class="hr"></div>
        <p>
          <label for="emergencyContactPhone" class="em">紧急联系人电话</label><span class="line"></span>
          <input class="name-css name-css1" type="text" id="emergencyContactPhone" placeholder="请填写紧急联系人电话">
        </p>
        <div class="hr"></div>
        <p>
          <label for="relationship" class="em">与当事人关系</label><span class="line"></span>
          <input class="name-css name-css1" type="text" id="relationship" placeholder="请输入联系人与您的关系">
        </p>
        <div class="hr"></div>
      </form>

      <div>
        <el-button type="primary" style="width: 90%;margin-top: 3rem" @click="nextStep">下一步</el-button>
      </div>

    </main>
  </div>
</template>

<script>
export default {
  name: "InformationFilling",

  data() {
    return {
      active: 0,
    }
  },
  methods: {
    goBack() {

    },
    async nextStep() {
      // 提示消息
      const re = await this.$confirm('保证所填均为真实信息, 是否提交?', '提示', {
        confirmButtonText: '确定',
        cancelButtonText: '取消',
        type: 'warning',
      }).catch(err => err)

      // console.log(re)
      if (re != 'confirm') return this.$message.info('已取消')

      this.$router.push('/arrivalRegistration')
    },
  }

}
</script>

<style lang="less" scoped>
.box {
  background: #fff;
  padding-bottom: 5rem;
}
/*header style*/
header {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2.6rem;
  background: #45C0F8;
  color: #fff;
}
header .backIcon {
  position: absolute;
  width: 6rem;
  left: 0;
}
main {
  width: 100%;
}
main .steps {
  width: 100%;
  margin-top: 1rem;
  /*margin-bottom: 1rem;*/
}
.hr {
  margin-top: .3rem;
  margin-bottom: .6rem;
  width: 100%;
  border-bottom: 1px solid #bfcbd9;
}

.form {
  width: 100%;
  text-align: left;

  .name-css {
    border: 0;
    outline: none;
    width: 60%;
  }
  .name-css1 {
    width: 50%;
  }
  .line {
    margin: 3px 1rem 3px 1rem;
    height: 1rem;
    border-left: 1px solid #888888;
  }
  p {
    margin: 16px 0 16px 0;
    padding-left: 1.5rem;
  }
  label {
    display: inline-block;
    width: 4rem;
    text-align: right;
  }
  .em {
    width: 7rem;
  }
}

</style>
